<?php 
/*******************************数据处理****************************************/
if (isset($contactList)) {
  //获取contactList的信息
  $contactName = $contactList->getItem('name')->getValue();
  $contactDescription = $contactList->getItem('description')->getValue();
  $contactImage = Yii::app()->request->baseUrl . $contactList->getItem('image')->getValue();
}
/*****************************结束数据处理**************************************/

//提供返回按钮所需的参数
$backData = array('cooker' => 'BWCompanyInfo@ShowHome');
echo $control->renderView("header",array('backData' => $backData, 'title' => '联系我们'));

if (isset($contactList)) {
?>
<!--******************** News Section ********************-->
  <section id="portfolio" class="single-page scrollblock">
      <div class="container">
        <div class="row">
          <div class="span4">
            <div class="mask2"> <a href="#" rel="prettyPhoto"><img src="<?php echo $contactImage;?>" alt=""></a> </div>
            <div class="inside">
              <hgroup>
                <h2><?php echo $contactName;?></h2>
              </hgroup>
              <div class="entry-content">
                <p><?php echo $contactDescription?></p>
            </div>
            <!-- /.inside -->
          </div>
        </div>
        <!-- /.row -->
        </div>
      <!-- /.container -->
    </section>
<?php
} 
echo $control->renderView("footer");
?>